<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<? foreach ($urls as $url): ?>
<url>
    <loc>http://<?= \Lib\Request::server() ?><?= $url ?></loc>
    <lastmod><?= date('Y-m-d', time() - 60*60*24*10) ?></lastmod>
    <changefreq>weekly</changefreq>
    <priority>0.8</priority>
</url>
<? endforeach ?>
</urlset>